<%@page import="com.alibaba.fastjson.JSONObject"%>
<%@page import="com.dingpeikeji.quickdeer.modules.base.web.FSysController"%>
<%@page import="com.dingpeikeji.quickdeer.core.common.utils.CookieUtils"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ include file="/WEB-INF/views/include/constrant.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="霞客约车网，霞客，约车,互联网巴士，巴士,xiake,xiakeyueche, bus，包车，用车，租车，大巴，直通车，车票，自助游，跟团游,接送机">
<meta name="description" content="霞客约车网是一款互联网+交通出行平台，联合专业客运企业提供各类包车、旅行车票及个性化的定制包车产品，产品包括日租包车、旅游包车、接送机/火车、自助游车票、跟团游巴士、机场直通车、定制包车等，致力于为用户提供更安全、更便捷、更集约的旅行用车服务。">
<link href="${ctxStatic }/index/css/header.css" rel="stylesheet">
<script src="${ctxStatic }/jquery/jquery-1.8.3.min.js"></script>
<script src="${ctxStatic}/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript" src="${ctxStatic }/cityselector/cityselect.js"></script>
<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=kOQ8j9rd2ATw2R54boLMFUalu3gGNGDO&s=1"></script>
<script src="//kzcdn.itc.cn/res/skin/js/uaredirect.js?v=5.0" type="text/javascript"></script>
<script type="text/javascript">KZ.redirect("https://czxkyc.kuaizhan.com");</script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?ec3b3908a8e045507c90bce4f622f7b4";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<script type="text/javascript">
$(function() {
	$.post("${ctxFront }/sms/ipLocation",function(d){//d==城市名
		$("#cityinfo").html(d);
		setCity(d);
	});
	// 菜单选中效果
	$('.' + $('#menuInfo').val()).addClass("dg_nav_cg");
	$('.funcMenu').click(function() {
		var url = $(this).attr('data-url');
		if (url != '#') {
			window.location.href = $(this).attr('data-url');
		}
	});
	$('#travel').click(function() {
		window.location.href = '${pageContext.request.contextPath }/indexTravelRent.jsp';
	});
})
		function setCity(obj){
			$.post('${ctxFront}/json/getSiteidByName',"name="+obj, function(data) {
				// 定位城市选中
				var $autocity = $('input[data-autocity="yes"]');
				if(data.sitename!=null){
					$autocity.val(data.sitename);
					$autocity.next('input').val(data.siteid);
				}else{
					$autocity.val('常州市');
					$autocity.next('input').val('580');
				}
			});
		}
</script>
 	      <script>
				 	 	      	//第一种方法
      $(document).ready(function(){
    var doc=document,inputs=doc.getElementsByTagName('input'),supportPlaceholder='placeholder'in doc.createElement('input'),placeholder=function(input){var text=input.getAttribute('placeholder'),defaultValue=input.defaultValue;
    if(defaultValue==''){
        input.value=text}
        input.onfocus=function(){
            if(input.value===text){this.value=''}};
            input.onblur=function(){if(input.value===''){this.value=text}}};
            if(!supportPlaceholder){
                for(var i=0,len=inputs.length;i<len;i++){var input=inputs[i],text=input.getAttribute('placeholder');
                if(input.type==='text'&&text){placeholder(input)}}}});
				 	 	      </script>
<title>【霞客约车】国内首选的旅行包车服务平台</title>
</head>
<body><div id="allmap"></div>
<div class="dg_header">
    <div class="dg_header_1">
        <a href="${ctxFront }/index" style="float: left;">
            <img class="img_1" src="${ctxStatic }/index/images/logo.png">
        </a>
    <span class="dg_coor">当前城市：&nbsp;<img class="img-3" src="${ctxStatic }/index/images/coordinate.png">
    &nbsp;&nbsp;<span id="cityinfo">正在定位...</span></span>
    <img class="img_4" src="${ctxStatic }/index/images/phone.png">
    </div>
    <div class="dg_nav">
        <ul class="dg_nav_1">
            <li class="index"><a data-url="${ctxFront }/index" class="funcMenu index" href="javascript:void(0)">首页</a></li>
            <li class="indexTravelRent"><a href="javascript:void(0)" id="travel" class="indexTravelRent">旅游包车</a></li>
            <li class="indexDayRent"><a href="javascript:void(0)" data-url="${ctxFront }/indexDayRent" class="funcMenu indexDayRent">按天包车</a></li>
            <li class="indexAirRent"><a href="javascript:void(0)" data-url="${ctxFront }/indexAirRent" class="funcMenu indexAirRent ">接送机</a></li>
            <li class="indexDemands"><a href="javascript:void(0)" data-url="${ctxFront }/rentproduct/demands/form" class="funcMenu indexDemands">定制包车</a></li>
            
             <c:if test="${empty sessionScope.front_user }">
            <li id="Reg" class="nav_right">
            <img src="${ctxStatic }/index/images/load.png">&nbsp;
            <a href="${pageContext.request.contextPath }/login.jsp">登录</a></li>
            <li id="Login" class="nav_right_1">
            <img src="${ctxStatic }/index/images/register.png">&nbsp;
            <a href="${pageContext.request.contextPath }/register.jsp">注册</a></li>
             </c:if>
             <c:if test="${not empty sessionScope.front_user }">
             
            <c:if test="${empty sessionScope.front_user.name }">
            <li id="Reg" class="nav_right">
            <img src="${ctxStatic }/index/images/load.png">&nbsp;
            <a href="${ctxFront}/orders/orderList">${sessionScope.front_user.loginName}的账号</a></li></c:if>
            
            <c:if test="${not empty sessionScope.front_user.name }">
            <li id="Reg" class="nav_right">
            <img src="${ctxStatic }/index/images/load.png">&nbsp;
            <a href="${ctxFront}/orders/orderList">${sessionScope.front_user.name}的账号</a></li></c:if>
            
            <li id="Login" class="nav_right_1">
            <img src="${ctxStatic }/index/images/register.png">&nbsp;
            <a href="${ctxFront }/logout">退出</a></li>
             </c:if>
        </ul>
    </div>
</div>
